package org.simple.learning.spring.boot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目名称：spring-boot-learning
 * 类名称：LongProcessController
 * 类描述：LongProcessController
 * 创建时间：2019/2/20
 *
 * @author guihuo   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
@RestController
public class LongProcessController {

    @RequestMapping("/long-process")
    public String pause() throws InterruptedException {
        Thread.sleep(20 * 1000);
        System.out.println("Process finished");
        return "Process finished";
    }

}
